﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>test</title>
<link rel="StyleSheet" href="dtree/dtree.css" type="text/css" />
<script type="text/javascript" src="dtree/dtree.js"></script>
</head>
<body >
<table>
<tr>
<td width="200px"  valign="top">
<div class="dtree">
	<script type="text/javascript">
		<!--
		d = new dTree('d');
		d.add(0,-1,'目录维护');
	   <c:forEach items="${goodstypes}" var="goodtype">
         d.add(${goodtype.id},${empty goodtype.upGoodType?0:goodtype.upGoodType.id},'${goodtype.typeName}','javascript:refresh(${goodtype.id})');
       </c:forEach>
       d.selected="${sessionScope.admin_type_id}"
	   document.write(d);
	   //document.frames["edit"].location.reload();
	   
     function refresh(id){
       document.frames("edit").location.href="typeedit.do?id="+id;    
     }
         
		//-->
	</script>

</div>
</td>
<td valign="top">
<iframe name="edit" src="typeedit.do?id=${sessionScope.admin_type_id}"   align="center"  frameborder="0" scrolling="yes" height="500" width="800px" noresize="noresize"></iframe> 
</td>
</tr>
</table>
</body>
</html>
